package io.github.gozhuyinglong.client.controller;

import io.github.gozhuyinglong.demo.DemoPet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhuYinglong
 * @date 2022/2/19 0019
 */
@RestController
@RequestMapping("/client")
public class ClientController {


    @Autowired
    private DemoPet demoPet;

    @GetMapping("/test")
    public String test() {
        return demoPet.getName();
    }
}

